﻿using MediatR;
using ProduceBasicData.ErrorCode;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ProduceBasicData.Api.Application.Command.ProductionManage
{
    public class CreateWorkCommand:IRequest<ApiResult<int>>
    {
       
        /// <summary>
        /// 工单类型
        /// </summary>
        public string Work_type { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public int Customer_id { get; set; }
        /// <summary>
        /// Bom物料id
        /// </summary>
        public int Product_id { get; set; }
        /// <summary>
        /// 产线id
        /// </summary>
        public int Producttion_id { get; set; }
        /// <summary>
        /// 订单数量
        /// </summary>
        public int Order_number { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime Start_time { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime End_time { get; set; }
        /// <summary>
        /// 工单状态  1初始化,2待审批,3已下发,4已完成,5领料中,6生产中
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public string Upload { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Work_Desc { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 车间管理外键
        /// </summary>
        public int WorkshopId { get; set; }

    }
}
